package com.anycl.spring.soundsystem;

import com.anycl.spring.knights.Knight;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CDPlayerMain {

    public static void main(String[] args) {
        ApplicationContext context = new
                ClassPathXmlApplicationContext("/spring/soundsystem.xml");
        CDPlayer cdPlayer = (CDPlayer) context.getBean("cdPlayer");
        cdPlayer.play();
    }
}
